package com.linghang.association.domain;

import java.util.ArrayList;
import java.util.List;

public class MinisterExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public MinisterExample() {
        oredCriteria = new ArrayList<>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andMinisterNameIsNull() {
            addCriterion("minister_name is null");
            return (Criteria) this;
        }

        public Criteria andMinisterNameIsNotNull() {
            addCriterion("minister_name is not null");
            return (Criteria) this;
        }

        public Criteria andMinisterNameEqualTo(String value) {
            addCriterion("minister_name =", value, "ministerName");
            return (Criteria) this;
        }

        public Criteria andMinisterNameNotEqualTo(String value) {
            addCriterion("minister_name <>", value, "ministerName");
            return (Criteria) this;
        }

        public Criteria andMinisterNameGreaterThan(String value) {
            addCriterion("minister_name >", value, "ministerName");
            return (Criteria) this;
        }

        public Criteria andMinisterNameGreaterThanOrEqualTo(String value) {
            addCriterion("minister_name >=", value, "ministerName");
            return (Criteria) this;
        }

        public Criteria andMinisterNameLessThan(String value) {
            addCriterion("minister_name <", value, "ministerName");
            return (Criteria) this;
        }

        public Criteria andMinisterNameLessThanOrEqualTo(String value) {
            addCriterion("minister_name <=", value, "ministerName");
            return (Criteria) this;
        }

        public Criteria andMinisterNameLike(String value) {
            addCriterion("minister_name like", value, "ministerName");
            return (Criteria) this;
        }

        public Criteria andMinisterNameNotLike(String value) {
            addCriterion("minister_name not like", value, "ministerName");
            return (Criteria) this;
        }

        public Criteria andMinisterNameIn(List<String> values) {
            addCriterion("minister_name in", values, "ministerName");
            return (Criteria) this;
        }

        public Criteria andMinisterNameNotIn(List<String> values) {
            addCriterion("minister_name not in", values, "ministerName");
            return (Criteria) this;
        }

        public Criteria andMinisterNameBetween(String value1, String value2) {
            addCriterion("minister_name between", value1, value2, "ministerName");
            return (Criteria) this;
        }

        public Criteria andMinisterNameNotBetween(String value1, String value2) {
            addCriterion("minister_name not between", value1, value2, "ministerName");
            return (Criteria) this;
        }

        public Criteria andMinisterGenderIsNull() {
            addCriterion("minister_gender is null");
            return (Criteria) this;
        }

        public Criteria andMinisterGenderIsNotNull() {
            addCriterion("minister_gender is not null");
            return (Criteria) this;
        }

        public Criteria andMinisterGenderEqualTo(String value) {
            addCriterion("minister_gender =", value, "ministerGender");
            return (Criteria) this;
        }

        public Criteria andMinisterGenderNotEqualTo(String value) {
            addCriterion("minister_gender <>", value, "ministerGender");
            return (Criteria) this;
        }

        public Criteria andMinisterGenderGreaterThan(String value) {
            addCriterion("minister_gender >", value, "ministerGender");
            return (Criteria) this;
        }

        public Criteria andMinisterGenderGreaterThanOrEqualTo(String value) {
            addCriterion("minister_gender >=", value, "ministerGender");
            return (Criteria) this;
        }

        public Criteria andMinisterGenderLessThan(String value) {
            addCriterion("minister_gender <", value, "ministerGender");
            return (Criteria) this;
        }

        public Criteria andMinisterGenderLessThanOrEqualTo(String value) {
            addCriterion("minister_gender <=", value, "ministerGender");
            return (Criteria) this;
        }

        public Criteria andMinisterGenderLike(String value) {
            addCriterion("minister_gender like", value, "ministerGender");
            return (Criteria) this;
        }

        public Criteria andMinisterGenderNotLike(String value) {
            addCriterion("minister_gender not like", value, "ministerGender");
            return (Criteria) this;
        }

        public Criteria andMinisterGenderIn(List<String> values) {
            addCriterion("minister_gender in", values, "ministerGender");
            return (Criteria) this;
        }

        public Criteria andMinisterGenderNotIn(List<String> values) {
            addCriterion("minister_gender not in", values, "ministerGender");
            return (Criteria) this;
        }

        public Criteria andMinisterGenderBetween(String value1, String value2) {
            addCriterion("minister_gender between", value1, value2, "ministerGender");
            return (Criteria) this;
        }

        public Criteria andMinisterGenderNotBetween(String value1, String value2) {
            addCriterion("minister_gender not between", value1, value2, "ministerGender");
            return (Criteria) this;
        }

        public Criteria andMinisterPhoneIsNull() {
            addCriterion("minister_phone is null");
            return (Criteria) this;
        }

        public Criteria andMinisterPhoneIsNotNull() {
            addCriterion("minister_phone is not null");
            return (Criteria) this;
        }

        public Criteria andMinisterPhoneEqualTo(String value) {
            addCriterion("minister_phone =", value, "ministerPhone");
            return (Criteria) this;
        }

        public Criteria andMinisterPhoneNotEqualTo(String value) {
            addCriterion("minister_phone <>", value, "ministerPhone");
            return (Criteria) this;
        }

        public Criteria andMinisterPhoneGreaterThan(String value) {
            addCriterion("minister_phone >", value, "ministerPhone");
            return (Criteria) this;
        }

        public Criteria andMinisterPhoneGreaterThanOrEqualTo(String value) {
            addCriterion("minister_phone >=", value, "ministerPhone");
            return (Criteria) this;
        }

        public Criteria andMinisterPhoneLessThan(String value) {
            addCriterion("minister_phone <", value, "ministerPhone");
            return (Criteria) this;
        }

        public Criteria andMinisterPhoneLessThanOrEqualTo(String value) {
            addCriterion("minister_phone <=", value, "ministerPhone");
            return (Criteria) this;
        }

        public Criteria andMinisterPhoneLike(String value) {
            addCriterion("minister_phone like", value, "ministerPhone");
            return (Criteria) this;
        }

        public Criteria andMinisterPhoneNotLike(String value) {
            addCriterion("minister_phone not like", value, "ministerPhone");
            return (Criteria) this;
        }

        public Criteria andMinisterPhoneIn(List<String> values) {
            addCriterion("minister_phone in", values, "ministerPhone");
            return (Criteria) this;
        }

        public Criteria andMinisterPhoneNotIn(List<String> values) {
            addCriterion("minister_phone not in", values, "ministerPhone");
            return (Criteria) this;
        }

        public Criteria andMinisterPhoneBetween(String value1, String value2) {
            addCriterion("minister_phone between", value1, value2, "ministerPhone");
            return (Criteria) this;
        }

        public Criteria andMinisterPhoneNotBetween(String value1, String value2) {
            addCriterion("minister_phone not between", value1, value2, "ministerPhone");
            return (Criteria) this;
        }

        public Criteria andMinisterClassIsNull() {
            addCriterion("minister_class is null");
            return (Criteria) this;
        }

        public Criteria andMinisterClassIsNotNull() {
            addCriterion("minister_class is not null");
            return (Criteria) this;
        }

        public Criteria andMinisterClassEqualTo(String value) {
            addCriterion("minister_class =", value, "ministerClass");
            return (Criteria) this;
        }

        public Criteria andMinisterClassNotEqualTo(String value) {
            addCriterion("minister_class <>", value, "ministerClass");
            return (Criteria) this;
        }

        public Criteria andMinisterClassGreaterThan(String value) {
            addCriterion("minister_class >", value, "ministerClass");
            return (Criteria) this;
        }

        public Criteria andMinisterClassGreaterThanOrEqualTo(String value) {
            addCriterion("minister_class >=", value, "ministerClass");
            return (Criteria) this;
        }

        public Criteria andMinisterClassLessThan(String value) {
            addCriterion("minister_class <", value, "ministerClass");
            return (Criteria) this;
        }

        public Criteria andMinisterClassLessThanOrEqualTo(String value) {
            addCriterion("minister_class <=", value, "ministerClass");
            return (Criteria) this;
        }

        public Criteria andMinisterClassLike(String value) {
            addCriterion("minister_class like", value, "ministerClass");
            return (Criteria) this;
        }

        public Criteria andMinisterClassNotLike(String value) {
            addCriterion("minister_class not like", value, "ministerClass");
            return (Criteria) this;
        }

        public Criteria andMinisterClassIn(List<String> values) {
            addCriterion("minister_class in", values, "ministerClass");
            return (Criteria) this;
        }

        public Criteria andMinisterClassNotIn(List<String> values) {
            addCriterion("minister_class not in", values, "ministerClass");
            return (Criteria) this;
        }

        public Criteria andMinisterClassBetween(String value1, String value2) {
            addCriterion("minister_class between", value1, value2, "ministerClass");
            return (Criteria) this;
        }

        public Criteria andMinisterClassNotBetween(String value1, String value2) {
            addCriterion("minister_class not between", value1, value2, "ministerClass");
            return (Criteria) this;
        }

        public Criteria andMinisterAgeIsNull() {
            addCriterion("minister_age is null");
            return (Criteria) this;
        }

        public Criteria andMinisterAgeIsNotNull() {
            addCriterion("minister_age is not null");
            return (Criteria) this;
        }

        public Criteria andMinisterAgeEqualTo(Integer value) {
            addCriterion("minister_age =", value, "ministerAge");
            return (Criteria) this;
        }

        public Criteria andMinisterAgeNotEqualTo(Integer value) {
            addCriterion("minister_age <>", value, "ministerAge");
            return (Criteria) this;
        }

        public Criteria andMinisterAgeGreaterThan(Integer value) {
            addCriterion("minister_age >", value, "ministerAge");
            return (Criteria) this;
        }

        public Criteria andMinisterAgeGreaterThanOrEqualTo(Integer value) {
            addCriterion("minister_age >=", value, "ministerAge");
            return (Criteria) this;
        }

        public Criteria andMinisterAgeLessThan(Integer value) {
            addCriterion("minister_age <", value, "ministerAge");
            return (Criteria) this;
        }

        public Criteria andMinisterAgeLessThanOrEqualTo(Integer value) {
            addCriterion("minister_age <=", value, "ministerAge");
            return (Criteria) this;
        }

        public Criteria andMinisterAgeIn(List<Integer> values) {
            addCriterion("minister_age in", values, "ministerAge");
            return (Criteria) this;
        }

        public Criteria andMinisterAgeNotIn(List<Integer> values) {
            addCriterion("minister_age not in", values, "ministerAge");
            return (Criteria) this;
        }

        public Criteria andMinisterAgeBetween(Integer value1, Integer value2) {
            addCriterion("minister_age between", value1, value2, "ministerAge");
            return (Criteria) this;
        }

        public Criteria andMinisterAgeNotBetween(Integer value1, Integer value2) {
            addCriterion("minister_age not between", value1, value2, "ministerAge");
            return (Criteria) this;
        }

        public Criteria andMinisterPhotoIsNull() {
            addCriterion("minister_photo is null");
            return (Criteria) this;
        }

        public Criteria andMinisterPhotoIsNotNull() {
            addCriterion("minister_photo is not null");
            return (Criteria) this;
        }

        public Criteria andMinisterPhotoEqualTo(String value) {
            addCriterion("minister_photo =", value, "ministerPhoto");
            return (Criteria) this;
        }

        public Criteria andMinisterPhotoNotEqualTo(String value) {
            addCriterion("minister_photo <>", value, "ministerPhoto");
            return (Criteria) this;
        }

        public Criteria andMinisterPhotoGreaterThan(String value) {
            addCriterion("minister_photo >", value, "ministerPhoto");
            return (Criteria) this;
        }

        public Criteria andMinisterPhotoGreaterThanOrEqualTo(String value) {
            addCriterion("minister_photo >=", value, "ministerPhoto");
            return (Criteria) this;
        }

        public Criteria andMinisterPhotoLessThan(String value) {
            addCriterion("minister_photo <", value, "ministerPhoto");
            return (Criteria) this;
        }

        public Criteria andMinisterPhotoLessThanOrEqualTo(String value) {
            addCriterion("minister_photo <=", value, "ministerPhoto");
            return (Criteria) this;
        }

        public Criteria andMinisterPhotoLike(String value) {
            addCriterion("minister_photo like", value, "ministerPhoto");
            return (Criteria) this;
        }

        public Criteria andMinisterPhotoNotLike(String value) {
            addCriterion("minister_photo not like", value, "ministerPhoto");
            return (Criteria) this;
        }

        public Criteria andMinisterPhotoIn(List<String> values) {
            addCriterion("minister_photo in", values, "ministerPhoto");
            return (Criteria) this;
        }

        public Criteria andMinisterPhotoNotIn(List<String> values) {
            addCriterion("minister_photo not in", values, "ministerPhoto");
            return (Criteria) this;
        }

        public Criteria andMinisterPhotoBetween(String value1, String value2) {
            addCriterion("minister_photo between", value1, value2, "ministerPhoto");
            return (Criteria) this;
        }

        public Criteria andMinisterPhotoNotBetween(String value1, String value2) {
            addCriterion("minister_photo not between", value1, value2, "ministerPhoto");
            return (Criteria) this;
        }

        public Criteria andDepartmentIdIsNull() {
            addCriterion("department_id is null");
            return (Criteria) this;
        }

        public Criteria andDepartmentIdIsNotNull() {
            addCriterion("department_id is not null");
            return (Criteria) this;
        }

        public Criteria andDepartmentIdEqualTo(Integer value) {
            addCriterion("department_id =", value, "departmentId");
            return (Criteria) this;
        }

        public Criteria andDepartmentIdNotEqualTo(Integer value) {
            addCriterion("department_id <>", value, "departmentId");
            return (Criteria) this;
        }

        public Criteria andDepartmentIdGreaterThan(Integer value) {
            addCriterion("department_id >", value, "departmentId");
            return (Criteria) this;
        }

        public Criteria andDepartmentIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("department_id >=", value, "departmentId");
            return (Criteria) this;
        }

        public Criteria andDepartmentIdLessThan(Integer value) {
            addCriterion("department_id <", value, "departmentId");
            return (Criteria) this;
        }

        public Criteria andDepartmentIdLessThanOrEqualTo(Integer value) {
            addCriterion("department_id <=", value, "departmentId");
            return (Criteria) this;
        }

        public Criteria andDepartmentIdIn(List<Integer> values) {
            addCriterion("department_id in", values, "departmentId");
            return (Criteria) this;
        }

        public Criteria andDepartmentIdNotIn(List<Integer> values) {
            addCriterion("department_id not in", values, "departmentId");
            return (Criteria) this;
        }

        public Criteria andDepartmentIdBetween(Integer value1, Integer value2) {
            addCriterion("department_id between", value1, value2, "departmentId");
            return (Criteria) this;
        }

        public Criteria andDepartmentIdNotBetween(Integer value1, Integer value2) {
            addCriterion("department_id not between", value1, value2, "departmentId");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {
        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}